﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PingPongMain
{
    public static class PlayerMovement
    {
        public static void MovePaddleUp(Paddle paddle)
        {
            if (paddle.GameObjCoords.Row > 0)
            {
                paddle.GameObjCoords.Row--;
            }

        }
        public static void MovePaddleDown(Paddle paddle)
        {
            if (paddle.GameObjCoords.Row + paddle.Length < PrepareField.WorldRows - 1 )
            {
                paddle.GameObjCoords.Row++;
            }
        }

    }
}
